import request from "@/utils/request";

export function getChildList(data) {
  return request({
    url: "/v2/SubPackage/getlist",
    method: "post",
    data
  });
}
//创建子包接口
export function createChild(data) {
  return request({
    url: "/v2/SubPackage/add",
    method: "post",
    data
  });
}
//查询当前代理全部母包
export function getAllParentPackage(data) {
  return request({
    url: "/v2/ParentPackage/getAllParentPackage",
    method: "post",
    data
  });
}
//获取所有推广员
export function getAssistantList(data) {
  return request({
    url: "/v2/Assistant/getList",
    method: "post",
    data
  });
}
//获取子包详情
export function getsubpackage(data) {
  return request({
    url: "/v2/SubPackage/getsubpackage",
    method: "post",
    data
  });
}
//修改子包
export function modifySubPackage(data) {
  return request({
    url: "/v2/SubPackage/modify",
    method: "post",
    data
  });
}
//更新子包状态
export function setEnabled(data) {
  return request({
    url: "/v2/SubPackage/setEnabled",
    method: "post",
    data
  });
}
//获取游戏分组的信息
export function getGameGroupList(data) {
  return request({
    url: "/v2/ParentPackage/getGameGroupList",
    method: "post",
    data
  });
}
// 重新生成子包
export function packsubpackage(data) {
  return request({
    url: "/v2/SubPackage/packsubpackage",
    method: "post",
    data
  });
}

